import tkinter as tk

root = tk.Tk()
root.geometry('500x300')
root['background'] = '#263238'
tk.Label(root, text='用户名：').place(relx=0.3, rely=0.2)
tk.Entry(root).place(relx=0.5, rely=0.2)
tk.Label(root, text='密  码：').place(relx=0.3, rely=0.4)
tk.Entry(root).place(relx=0.5, rely=0.4)
#
tk.Button(root, text='提交', width=10).place(relx=0.5, rely=0.6)

root.mainloop()
